import { App, Plugin } from 'vue'
import vueHighcharts from "./vue3-highcharts";

const install = (app: App) => {
    app.component(vueHighcharts.name, vueHighcharts)
};

vueHighcharts.install = install;

// 为了让app.use()可以成功使用，将vueHighcharts做类型强制转换
export default <Plugin>(vueHighcharts as unknown);